﻿using System.Xml;

namespace ZCConsole
{
    /// <summary>
    /// 屏蔽门
    /// </summary>
    public class PSDoor : Device
    {
        /// <summary>
        /// 前缀名称（车站）
        /// </summary>
        public string PreName { get; private set; }

        public override void LoadData(XmlElement element)
        {
            base.LoadData(element);

            PreName = element.GetAttribute("PreName");
        }

        private bool isEB_;

        public bool IsEB
        {
            get { return isEB_; }
            set { isEB_ = value; }
        }

        private bool isOpen_ = false;

        public bool IsOpen
        {
            get { return isOpen_; }
            set { isOpen_ = value; }
        }

        private bool shouldOpen_;

        public bool ShouldOpen
        {
            get { return shouldOpen_; }
            set { shouldOpen_ = value; }
        }

        private bool isDiscon;

        public bool IsDiscon
        {
            get { return isDiscon; }
            set { isDiscon = value; }
        }

    }

}
